<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .outer{
            width: 500px;
            height: 300px;
            border: 1px solid green;
            background-color: beige;
        }
        .inter{
            width: 100px;
            height: 100px;
            border: 1px solid gainsboro;
            
        }/* display: inline; inline 行 block 块 */
        .d1{
            background-color: rgb(40, 189, 55);
            float: left;
        }
        .d2{
            background-color: blue;
            float: left;
        }
        .d3{
            background-color: red;
            float: left;
        }
    </style>
</head>
<body>




    <div class="outer">
        <div class="inter d1">a</div>
        <div class="inter d2">b</div>
        <div class="inter d3">c</div>
    </div>





</body>
</html>